let serverTypes = {
  ArcGisMapServerImageryProvider: 0,
  OpenStreetMapImageryProvider: 1,
  WebMapTileServiceImageryProvider: 2,
  TileMapServiceImageryProvider: 3,
  UrlTemplateImageryProvider: 4,
  WebMapServiceImageryProvider: 5,
  MapboxStyleImageryProvider: 6,
  SingleTileImageryProvider: 7,
  TileCoordinatesImageryProvider: 8,
  GridImageryProvider: 9,
  BingMapsImageryProvider: 10
};

var COOR_TYPE = {
  WGS84: 'wgs84', //天地图、ARCGIS
  GCJ02: 'gcj02', //高德、谷歌
  BD09: 'bd09'    //百度
}
var config = {
  services: 'http://fztsp.bjxingtaikeji.com/police_api', // 线上
  // arcgicServices: 'http://192.168.10.236:6080/arcgis/rest/services',

  duration: 1500, //弹出框消失时间

  // 初始视角
  startViewer: {
    poisiton: { longitude: 116.437596, latitude: 39.538391, height: 705 },
    euler: { heading: 0, pitch: -45, roll: 0 }
  },

  thems: 'dark', //light dark

  maps: [
    // {
    //   id: 0,
    //   name: '离线影像',
    //   coor: COOR_TYPE.WGS84,
    //   maximumLevel: 15,
    //   type: serverTypes.UrlTemplateImageryProvider,
    //   img: 'static/images/map/icon/offline.png',
    //   url: 'http://111.198.39.7:8000/data/global/dom/china15/{z}/{x}_{y}.png',
    // },
    {
      id: 1,
      name: 'ArcGis影像',
      coor: COOR_TYPE.WGS84,
      type: serverTypes.ArcGisMapServerImageryProvider,
      img: 'static/images/map/icon/arcgis.png',
      url: 'https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer'
    },
    {
      id: 2,
      name: '高德地图影像',
      coor: COOR_TYPE.GCJ02,
      maximumLevel: 18,
      type: serverTypes.UrlTemplateImageryProvider,
      img: 'static/images/map/icon/amap.png',
      url: 'https://webst02.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}'
    },
    {
      id: 3,
      name: '必应图',
      coor: COOR_TYPE.WGS84,
      type: serverTypes.BingMapsImageryProvider,
      img: 'static/images/map/icon/bing.png',
      url: 'https://dev.virtualearth.net'
    },
    {
      id: 4,
      name: '深色底图',
      coor: COOR_TYPE.GCJ02,
      type: serverTypes.UrlTemplateImageryProvider,
      img: 'static/images/map/icon/blue.png',
      url: 'http://cache1.arcgisonline.cn/arcgis/rest/services/ChinaOnlineStreetPurplishBlue/MapServer/tile/{z}/{y}/{x}'
    },
    {
      id: 5,
      name: 'MAPBOX',
      coor: COOR_TYPE.WGS84,
      maximumLevel: 15,
      type: serverTypes.MapboxStyleImageryProvider,
      IsWebMercatorTilingScheme: false,
      username: 'gaohejin',
      styleId: 'ckn8pl2mi0m4m17o2kqx0ehyg',
      accessToken: 'pk.eyJ1IjoiZ2FvaGVqaW4iLCJhIjoiY2ttd3g3ZmlsMDMwaTJ2bnFoMXg0Y2l4ciJ9.f5nCN_W40PAvBtE4cht2nQ',
      img: 'static/images/map/icon/mapbox.png',
      url: 'https://api.mapbox.com/styles/v1',
    },
    {
      id: 6,
      name: '夜间影像',
      coor: COOR_TYPE.WGS84,
      type: serverTypes.SingleTileImageryProvider,
      img: 'static/images/map/icon/night.png',
      url: 'static/images/map/night.jpeg'
    },
    {
      id: 7,
      name: '标注影像',
      coor: COOR_TYPE.WGS84,
      // maximumLevel: 19,
      type: serverTypes.OpenStreetMapImageryProvider,
      img: 'static/images/map/icon/night.png',
      url: 'https://a.tile.openstreetmap.org/'
    }
]
}
